DioDocs for PDF
DrawLine(Single,Single,Single,Single,Color,Single,Single[]) メソッド

DS.Documents.Imaging アセンブリ > GrapeCity.Documents.Drawing 名前空間 > GcGraphics クラス > DrawLine メソッド : DrawLine(Single,Single,Single,Single,Color,Single,Single[]) メソッド
The X coordinate of the first point.
The Y coordinate of the first point.
The X coordinate of the second point.
The Y coordinate of the second point.
The line color.
The line width.
The dash pattern.
Draws a line between two points, using the specified line color, width and dash pattern.

If the dashPattern array contains two or more items, the line is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

シンタックス
'宣言
 
Public Overloads Sub DrawLine( _
   ByVal x1 As System.Single, _
   ByVal y1 As System.Single, _
   ByVal x2 As System.Single, _
   ByVal y2 As System.Single, _
   ByVal lineColor As System.Drawing.Color, _
   ByVal lineWidth As System.Single, _
   ByVal dashPattern() As System.Single _
) 
public void DrawLine( 
   System.float x1,
   System.float y1,
   System.float x2,
   System.float y2,
   System.Drawing.Color lineColor,
   System.float lineWidth,
   System.float[] dashPattern
)

パラメータ

x1
The X coordinate of the first point.
y1
The Y coordinate of the first point.
x2
The X coordinate of the second point.
y2
The Y coordinate of the second point.
lineColor
The line color.
lineWidth
The line width.
dashPattern
The dash pattern.
参照

GcGraphics クラス
GcGraphics メンバ
オーバーロード一覧